<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
 
    <ui:composition>
 
        <p:dialog id="UsersViewDlg" widgetVar="UsersViewDialog" modal="true" resizable="false"  appendTo="@(body)" header="#{MyBundle.ViewUsersTitle}" closeOnEscape="true">

            <h:form id="UsersViewForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" columnClasses="column" rendered="#{usersController.selected != null}">

                        <h:outputText value="#{MyBundle.ViewUsersLabel_user}"/>
                        <h:outputText value="#{usersController.selected.user}" title="#{MyBundle.ViewUsersTitle_user}"/>

                        <h:outputText value="#{MyBundle.ViewUsersLabel_password}"/>
                        <h:outputText value="#{usersController.selected.password}" title="#{MyBundle.ViewUsersTitle_password}"/>

                        <h:outputText value="#{MyBundle.ViewUsersLabel_email}"/>
                        <h:outputText value="#{usersController.selected.email}" title="#{MyBundle.ViewUsersTitle_email}"/>

                        <h:outputText value="#{MyBundle.ViewUsersLabel_superadmin}"/>
                        <h:outputText value="#{usersController.selected.superadmin}" title="#{MyBundle.ViewUsersTitle_superadmin}"/>

                        <h:outputText value="#{MyBundle.ViewUsersLabel_lastConnection}"/>
                        <h:outputText value="#{usersController.selected.lastConnection}" title="#{MyBundle.ViewUsersTitle_lastConnection}">
                            <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                        </h:outputText>

                        <h:outputText value="#{MyBundle.ViewUsersLabel_status}"/>
                        <h:outputText value="#{usersController.selected.status}" title="#{MyBundle.ViewUsersTitle_status}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{MyBundle.Close}" onclick="UsersViewDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
